package cn.etynit.block;

import cn.etynit.domain.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.web.bind.annotation.PathVariable;

public class GetUserByIdFallback {
    public static User getUserByIdBlockHandler(@PathVariable("id") Long id, BlockException e){
        e.printStackTrace();
        return new User(-1L,"王大炮","断了。。。。");
    }
}
